package com.hfkh;

import java.util.Scanner;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class _666 {
    public static void main(String[] args) {
        int num = 0;
        int chartra = 0;
        int blak = 0;
        int other = 0;
        Scanner s = new Scanner(System.in);
        System.out.println("请输出字符创");
        String result = s.nextLine();
        char x[] = result.toCharArray();
        for (int i = 0; i < x.length; i++) {
            if (Character.isDigit(x[i])) {
                num++;
            } else if (Character.isLetter(x[i])) {
                chartra++;
            } else if (Character.isSpace(x[i])) {
                blak++;
            } else {
                other++;
            }
            System.out.println(x.length);
        }
        System.out.println("数字的个数是" + num);
        System.out.println("字符的个数是" + chartra);
        System.out.println("空值的个数是" + blak);
        System.out.println("其他的个数是" + other);


    }
}
